<html>
<head><meta charset="utf-8"><title>FxHashMap error · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/FxHashMap.20error.html">FxHashMap error</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="214484228"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/FxHashMap%20error/near/214484228" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> vn-ki <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/FxHashMap.20error.html#214484228">(Oct 25 2020 at 11:16)</a>:</h4>
<p>I'm trying to add an external crate to the compiler (I have added it to the cargo toml and gave it a relative path)</p>
<p>I'm getting this error</p>
<div class="codehilite"><pre><span></span><code>error: Prefer FxHashMap over HashMap, it has better performance
  --&gt; /mnt/videos/others/gsgdt/src/diff/diff_graph.rs:28:24
   |
28 |         let mut dist = HashMap::new();
   |                        ^^^^^^^ help: use: `FxHashMap`
</code></pre></div>



<a name="214486039"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/FxHashMap%20error/near/214486039" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/FxHashMap.20error.html#214486039">(Oct 25 2020 at 12:02)</a>:</h4>
<p>You will either have to pull it from <a href="http://crates.io">crates.io</a>, or disable the lint using <code>#[allow(lint_name)]</code> where <code>lint_name</code> is the part between <code>#[deny(</code> and <code>)]</code> just below the part of the error message you pasted. If you have the same error message multiple times, only the first one will mention the lint name.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>